liststore: Make a code snippet compile
authorTimm Bäder <mail@baedert.org>
Wed, 3 Jan 2018 14:01:12 +0000 (15:01 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sun, 7 Jan 2018 16:38:41 +0000 (16:38 +0000)
gtk/gtkliststore.c

index 8bf3eb19cd77f55855cebca7823d4225965e1d66..39388ef401e722267a1da425d4ffa291c3eb0a9d 100644 (file)
@@ -2164,8 +2164,17 @@ gtk_list_store_has_default_sort_func (GtkTreeSortable *sortable)
  * `gtk_list_store_insert_with_values (list_store, iter, position...)`
  * has the same effect as calling
  * |[<!-- language="C" -->
- * gtk_list_store_insert (list_store, iter, position);
- * gtk_list_store_set (list_store, iter, ...);
+ * static void
+ * insert_value (GtkListStore *list_store,
+ *               GtkTreeIter  *iter,
+ *               int           position)
+ * {
+ *   gtk_list_store_insert (list_store, iter, position);
+ *   gtk_list_store_set (list_store,
+ *                       iter
+ *                       // ...
+ *                       );
+ * }
  * ]|
  * with the difference that the former will only emit a row_inserted signal,
  * while the latter will emit row_inserted, row_changed and, if the list store